#!/bin/bash
#
# Script used to generate system reports
#

if [ ! -d /var/sysreport ];
then
	mkdir /var/sysreport
fi

/usr/bin/sysreport > /var/sysreport/`hostname`-`date +%Y%m%d.xml`

# for Fedora or Red Hat systems you will need to add the --system argument
# /usr/bin/sysreport --system fedora > /var/sysreport/`hostname`-`date +%Y%m%d.xml`

